﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System;

namespace Agile.Models
{
    /// <summary>
    /// 资源表
    /// </summary>
    [Table("rbac_resource")]
    [Description("资源表")]
    public partial class Resource : Entity, ITenant, ISoftDelete
    {
        public Resource()
        {
            Name = string.Empty;
            Description = string.Empty;
            TypeName = string.Empty;
            TypeId = string.Empty;
        }
        /// <summary>
        /// 资源名称
        /// </summary>
        [Description("资源名称")]
        public virtual string Name { get; set; }
        /// <summary>
        /// 所属租户
        /// </summary>
        [Description("所属租户")]
        public virtual string TenantId { get; set; }
        /// <summary>
        /// 软删除
        /// </summary>
        [Description("软删除")]
        public virtual int IsDelete { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Description("描述")]
        public string Description { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Description("分类名称")]
        public string TypeName { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        [Description("分类ID")]
        public string TypeId { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        [Description("是否可用")]
        public bool Disable { get; set; }

    }
}